package com.pig4cloud.pig.module.mapper.farm;

import com.pig4cloud.pig.common.mybatis.core.BaseMapperPlus;
import com.pig4cloud.pig.module.api.entity.farm.FarmFeedRecord;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.data.repository.query.Param;

import java.util.Map;

/**
 * 农场的饲料和鸡蛋的出入记录Mapper接口
 *
 * @author ruoyi
 * @date 2021-12-15
 */
@Mapper
public interface FarmFeedRecordMapper extends BaseMapperPlus<FarmFeedRecord> {

	/**
	 *  获取当前时间段已经兑换的鸡蛋数量
	 * @param map
	 * @return
	 */
	double getEggCountByMerId(@Param("map") Map<String,Object> map);
}
